Returns the number of non-zero values in the matrix.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(csr_matrix), | intent(in) | :: | x |
The CSR matrix object. |
The number of non-zero values in the matrix.
Returns the number of non-zero elements in an MSR matrix.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(msr_matrix), | intent(in) | :: | x |
The MSR matrix. |
The number of non-zero elements.